package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 防护措施检查项子表 实体类
 * 表名：ra_check_detail
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_check_detail")
public class RaCheckDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 检查任务id
     */
    @Column(name = "task_id", nullable = false)
    private Long taskId;
    
    /**
     * 检查项id
     */
    @Column(name = "term_id", nullable = false)
    private Long termId;
    
    /**
     * 检查表id
     */
    @Column(name = "checklist_id", nullable = false)
    private Long checklistId;
    
    /**
     * 检查小类
     */
    @Column(name = "type_name", nullable = false, length = 100)
    private String typeName;
    
    /**
     * 隐患等级（枚举）
     */
    @Column(name = "blackspot_level")
    private Byte blackspotLevel;
    
    /**
     * 隐患类型（枚举）
     */
    @Column(name = "blackspot_type", length = 100)
    private String blackspotType;
    
    /**
     * 备注
     */
    @Column(name = "notes", length = 256)
    private String notes;
    
    /**
     * 附件
     */
    @Column(name = "url", length = 500)
    private String url;
    
    /**
     * 状态（枚举）
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    /**
     * 检查人
     */
    @Column(name = "check_by", length = 100)
    private String checkBy;
    
    /**
     * 检查时间
     */
    @Column(name = "check_time")
    private java.time.LocalDateTime checkTime;
    
    /**
     * 租户主键
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 100)
    private String createBy;
    
    @Override
    public String toString() {
        return "RaCheckDetail{" +
            "id=" + id +
            ", taskId=" + taskId +
            ", termId=" + termId +
            ", checklistId=" + checklistId +
            ", typeName=" + typeName +
            ", blackspotLevel=" + blackspotLevel +
            ", blackspotType=" + blackspotType +
            ", notes=" + notes +
            ", url=" + url +
            ", status=" + status +
            ", checkBy=" + checkBy +
            ", checkTime=" + checkTime +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
        '}';
    }
} 